import React from 'react';
import { HashRouter, Route, Link ,Switch} from 'react-router-dom'
import about from '../route1/about'
import topic from '../route1/topic'
import Main from './main'
import Home from './Home'

export default class IRouter extends React.Component {
  render() {
    return (
      <HashRouter>

          <Home>
 
            <Route path="/home"   render={()=>{
               return  <Main/>
            }}></Route>
              <Route path="/home/a" component={about}></Route>
            <Route path="/about" component={about}></Route>
            <Route path="/topics" component={topic}></Route>
   
          </Home>
      </HashRouter>
    )
  }
}